package com.ruoyi.slope.video.radar.service.impl;

import java.util.Date;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.slope.video.radar.mapper.RadarMonitoringScatterMapper;
import com.ruoyi.slope.video.radar.domain.RadarMonitoringScatter;
import com.ruoyi.slope.video.radar.service.IRadarMonitoringScatterService;

/**
 * 散射图Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-06
 */
@Service
public class RadarMonitoringScatterServiceImpl implements IRadarMonitoringScatterService 
{
    @Autowired
    private RadarMonitoringScatterMapper radarMonitoringScatterMapper;

    /**
     * 查询散射图
     * 
     * @param atTime 散射图主键
     * @return 散射图
     */
    @Override
    public RadarMonitoringScatter selectRadarMonitoringScatterByAtTime(Date atTime)
    {
        return radarMonitoringScatterMapper.selectRadarMonitoringScatterByAtTime(atTime);
    }

    /**
     * 查询散射图列表
     * 
     * @param radarMonitoringScatter 散射图
     * @return 散射图
     */
    @Override
    public List<RadarMonitoringScatter> selectRadarMonitoringScatterList(RadarMonitoringScatter radarMonitoringScatter)
    {
        return radarMonitoringScatterMapper.selectRadarMonitoringScatterList(radarMonitoringScatter);
    }

    /**
     * 新增散射图
     * 
     * @param radarMonitoringScatter 散射图
     * @return 结果
     */
    @Override
    public int insertRadarMonitoringScatter(RadarMonitoringScatter radarMonitoringScatter)
    {
        radarMonitoringScatter.setCreateTime(DateUtils.getNowDate());
        return radarMonitoringScatterMapper.insertRadarMonitoringScatter(radarMonitoringScatter);
    }

    /**
     * 修改散射图
     * 
     * @param radarMonitoringScatter 散射图
     * @return 结果
     */
    @Override
    public int updateRadarMonitoringScatter(RadarMonitoringScatter radarMonitoringScatter)
    {
        radarMonitoringScatter.setUpdateTime(DateUtils.getNowDate());
        return radarMonitoringScatterMapper.updateRadarMonitoringScatter(radarMonitoringScatter);
    }

    /**
     * 批量删除散射图
     * 
     * @param atTimes 需要删除的散射图主键
     * @return 结果
     */
    @Override
    public int deleteRadarMonitoringScatterByAtTimes(Date[] atTimes)
    {
        return radarMonitoringScatterMapper.deleteRadarMonitoringScatterByAtTimes(atTimes);
    }

    /**
     * 删除散射图信息
     * 
     * @param atTime 散射图主键
     * @return 结果
     */
    @Override
    public int deleteRadarMonitoringScatterByAtTime(Date atTime)
    {
        return radarMonitoringScatterMapper.deleteRadarMonitoringScatterByAtTime(atTime);
    }
}
